package com.atguigu.gulimall.order.to;

import com.atguigu.gulimall.order.entity.OrderEntity;
import com.atguigu.gulimall.order.entity.OrderItemEntity;
import lombok.Data;

import java.math.BigDecimal;
import java.util.List;

/**
 * @DESCRIPTION: 创建订单数据
 * @author: zr
 * @DATE: 2023/3/25 15:13
 */
@Data
public class OrderCreateTo {
    /**
     * 订单信息
     */
    private OrderEntity order;
    /**
     * 订单项数据
     */

    private List<OrderItemEntity> orderItems;

    /** 订单计算的应付价格 **/
    private BigDecimal payPrice;

    /** 运费 **/
    private BigDecimal fare;
}
